<template>
    <div class="guideBox">
        <div class="intro" style="margin: 70% auto;">
            <h2>请在手机上进行双人对战</h2>
        </div>
    </div>
</template>

<script>
export default {
    name: 'guide',
    data() {
        return {}
    },

    created: function () {
        this.wxShare();
    },
    mounted: function () {
    },
    methods: {
        onmessage(e) {
            console.log(e);
        },

        // 微信分享
        wxShare: function () {
            this.wxHelper.init({
                types: ['share'],
                callback: (status) => {
                    if (status) {
                        this.wxHelper.shareMessage({
                            title: '我正在参加“党史天天学”知识竞答双人对战，快来挑战我吧！', // 分享标题
                            desc: '', // '我正在参加“党史天天学”知识竞答双人对战，快来挑战我吧！', // 分享描述
                            link: appConfig.onLineApiDomain + '/index', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
                            imgUrl: appConfig.onLineDomain + '/h5/img/wxShare.jpg', // 分享图标
                        });
                    }
                }
            });
        },
    }
}
</script>

<style src="../../public/static/answerpk/guide/css/guide.css"></style>
